﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Calculation_1;

namespace UnitTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            Int32 n1 = 10;
            Int32 n2 = 35;
            Calculation calc = new Calculation();
            Int32 Sum_1 = calc.Sum_Number(n1, n2);
            Int32 Sum_2 = n1 + n2;
            Assert.AreEqual(Sum_2, Sum_1, 0.001, "Sum not correctly");
            
        }

        [TestMethod]
        public void TestMethod2()
        {
            Int32 n1 = 10;
            Int32 n2 = 35;
            Calculation calc = new Calculation();
            Int32 Mult_1 = calc.Mult_Number(n1, n2);
            Int32 Mult_2 = n1 * n2;
            Assert.AreEqual(Mult_2, Mult_1, 0.001, "Mult not correctly");
        }
    }
}
